// 去除table中的form组件的margin-bottom
.el-table .el-table__row .el-form-item {
  margin-bottom: 0;
}

.el-table td,
.el-table th {
  padding: 2px 0;
}

.el-table {
  ::-webkit-scrollbar {
    width: 6px;
    height: 12px;
    opacity: 0.2;
  }

  // ::-webkit-scrollbar-thumb:vertical {
  //   height: 12px;
  //   background-color: #4787ff;
  //   -webkit-border-radius: 5px;
  // }
  ::-webkit-scrollbar-thumb:horizontal {
    width: 6px;
    background-color: #4787ff;
    -webkit-border-radius: 5px;
  }
}

.el-table-full {
  width: 100%;
  display: flex;
  flex-direction: column;

  .el-table__body-wrapper {
    flex-grow: 1;
  }
}

.base-content {
  width: 100%;
  height: calc(100% - 6px);
  padding: 0;
  box-sizing: border-box;
  background: #fff;
  display: flex;
  align-items: flex-start;
  border-radius: 6px;
  // overflow-y: auto;
  box-shadow: 0 4px 10px 4px #e4e7f0;
  position: relative;

  .basic-info {
    width: calc(100%);
    height: 100%;
    background: #fff;
    padding: 28px 20px 0;
    box-sizing: border-box;
    position: relative;

    .basic-search {
      flex: 0 0 auto;
    }

    // 新版统一
    .main-layout {
      display: inline-flex;
      flex: 1;
      overflow-y: auto;

      .sideBar-left {
        width: 240px;
        height: 100%;
        overflow: auto;
        display: flex;
        flex-shrink: 0;
        flex-direction: column;

        .sideBar-title {
          width: 100%;
          flex: 0 0 auto;
          font-size: 16px;
          font-weight: bold;
          color: #666666;
          padding: 10px;
          box-sizing: border-box;
        }

        .customer-tree {
          flex: 1;
          overflow: auto;
          background: #f8fbff;

          .el-tree-node__content {
            height: 40px;
            line-height: 40px;

            &:hover {
              color: #4787ff;
              background: rgba(47, 113, 245, 0.2);
            }

            .el-tree-node__label {
              font-size: 12px;
            }

            .el-tree-node__expand-icon {
              font-size: 16px;
              font-weight: bold;
              color: #999;
            }

            .is-leaf {
              color: transparent;
            }
          }

          .is-current {
            &>.el-tree-node__content {
              .el-tree-node__label {
                color: #409eff;
                font-weight: 600;
              }

              .el-tree-node__expand-icon {
                color: #409eff;
              }

              .is-leaf {
                color: transparent;
              }
            }
          }
        }
      }

      .sideBar-right {
        flex: 1;
        overflow: scroll;

        .child-table {
          height: calc(100% - 50px);

          .el-table {
            width: 100%;
            display: flex;
            flex-direction: column;

            .el-table__body-wrapper {
              flex-grow: 1;
            }
          }
        }
      }
    }

    // 兼容旧版
    .main-content {
      flex: 1;
      overflow-y: auto;
    }

    .el-table {
      overflow-y: auto;
    }

    .el-table::before {
      content: none;
    }
  }

  .el-table--small {
    th {
      color: #4e4e4e;
      font-weight: 600;
      padding: 12px 0;
      border-bottom: 1px solid #ebeef5;
    }

    td {
      color: #646464;
      padding: 10px 0;
      border-bottom: 1px solid #ebeef5;
    }

    tr:hover {
      td {
        background: #c1d6ff;
      }
    }

    .base-table-operation {
      width: 100%;
      display: flex;
      align-items: center;

      .el-link {
        margin-right: 12px;
      }
    }
  }

  .el-form-item--small {
    margin-right: 50px;
  }

  .base-content-operate {
    display: flex;
    align-items: center;
  }

  .base-export-button {
    background: #44c68f;
    border-color: #44c68f;
    color: #fff;
  }

  .base-disabled-button {
    background: #00c9d1;
    border-color: #00c9d1;
    color: #fff;
  }

  .el-table {
    margin-top: 12px;

  }

  .el-table__header {
    th {
      background: #f1f8ff;
    }
  }

  .is-checked,
  .is-indeterminate {
    .el-checkbox__inner {
      background: #4787ff;
      border-color: #4787ff;
    }
  }

  .el-table--border::after,
  .el-table--group::after,
  .el-table::before {
    background-color: #ebeef5;
  }

  .el-link {
    font-size: 12px;
  }

  .el-link.is-disabled {
    color: #999999;
  }

  .base-content-table-divider {
    vertical-align: sub;
    background: #d3d7dd;
  }
}

// 共用样式Dialog
.base-dialog {
  width: 100%;
  height: 100%;

  &.readonly {
    .el-dialog__body {
      height: calc(100% - 72px) !important;
    }
  }

  .el-dialog {
    transform: none;
    position: relative;
    left: 0;

    &.panna-dialog_small {
      width: 640px;
      height: 426px;
      // 优化dialog样式
      margin: 10vh auto !important;
    }

    &.panna-dialog_medium {
      width: 840px;
      height: 606px;
      margin-top: -303px !important;
      top: 50%;
    }

    &.panna-dialog_big {
      width: 1180px;
      height: 736px;
      margin-top: -368px !important;
      top: 50%;

    }

    &.panna-dialog_full {
      width: 100%;
      height: 100%;
      margin: 0 !important;
    }
  }

  .el-table {
    margin-top: 18px;
    height: calc(100% - 170px);
  }

  .el-table__header {
    th {
      background: #f1f8ff;
    }
  }

  .el-dialog__header {
    font-size: 20px;
    font-weight: 400;
    color: #232638;
    text-align: center;
    border-bottom: 1px #ebeef5 solid;
    padding: 25px 0 16px; //上边距25 左右0 下16px
  }

  .el-dialog__body {
    height: calc(100% - 72px - 64px);
    padding: 26px 20px !important;
    position: relative;
    overflow: auto;
  }

  .el-dialog__footer {
    width: 100%;
    padding: 18px 0 !important;
    background-color: #F9FAFB;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;

    &:first-child button {
      margin-left: 30px;
    }

    .el-button {
      width: 70px;
    }
  }

  .el-icon-close {
    font-weight: bold;
  }

  .relay-only-value {
    width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }

  .base-dialog-loading {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
  }

  .el-select {
    width: 100%;
  }

  .el-dropdown {
    width: 100%;
  }
}

.el-message-box__container {
  padding: 0 30px;
}

.base-pipeline-layout {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;

  .el-form-item {
    width: 50%;
  }

  .el-form-item__content {}
}

.el-switch {
  height: 33px;
}

.el-switch.is-checked .el-switch__core {
  background: #4787ff;
}

// tree点击激活样式
.customer-tree .is-current>.el-tree-node__content .custom-tree-node {
  color: #409eff;
  font-weight: 600;
}

// 流程
.process-node-item {
  cursor: move;
  width: 100px;
  height: 60px;

  svg {
    width: 100%;
    height: 100%;
  }
}

/*!*滚动条初始化*!*/
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
  opacity: 0.2;
}

::-webkit-scrollbar-track-piece {
  -webkit-border-radius: 5px;
  opacity: 0.2;
}

::-webkit-scrollbar-thumb:vertical {
  height: 10px;
  background-color: #d3d4d5;
  -webkit-border-radius: 5px;
}

// ::-webkit-scrollbar-thumb:vertical:hover {
//   background-color: #a2a3a5;
// }

::-webkit-scrollbar-thumb:horizontal {
  width: 6px;
  background-color: #d3d4d5;
  -webkit-border-radius: 5px;
}

// ::-webkit-scrollbar-thumb:horizontal:hover {
//   background-color: #a2a3a5;
// }
.el-message-box {
  .el-message-box__content {
    padding: 24px 0;
  }

  button:nth-child(2) {
    margin-left: 20px;
  }
}

label {
  font-weight: 500;
}

.el-message-box--center {
  padding-bottom: 0;
}

.el-message-box__title {
  font-size: 16px;
  color: #4e4e4e;
  font-weight: bold;
}

.el-message-box--center .el-message-box__btns {
  padding: 15px;

  .el-button--primary {
    background-color: #f56c6c;
    border-color: #f56c6c;
  }
}

.el-message-box--center .el-message-box__header {
  padding-top: 15px;
}

.avatar-popover {
  padding: 0;
  min-width: 180px;
}

.el-radio__input.is-disabled + span.el-radio__label {
  color: black;

}
.el-input.is-disabled .el-input__inner {

  color: black;

}
.el-checkbox__input.is-disabled + span.el-checkbox__label {
  color: black;
}
.el-radio__label{
  color: black;
}
.el-checkbox__label{
  color: black;
}

.el-checkbox__label{
  color: black;
}
.printDiv{ text-align: left;}